package homework02;

import java.io.FileOutputStream;

public class AutoCloseableDemo {
    public static void main(String[] args) {

        try (FileOutputStream fos=new FileOutputStream("xxx.txt")){
            fos.write(3);
        }catch (Exception e){
            System.out.println("解决问题");
        }
    }
}
